package com.miracle.main.module.mvp.contract;

import com.miracle.basemvp.base.BaseResponse;
import com.miracle.basemvp.base.IModel;
import com.miracle.basemvp.base.IView;
import com.miracle.main.module.mvp.entity.request.AddSecretRequest;

import io.reactivex.Observable;

/**
 * com.miracle.main.module.mvp.contract
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/7/7 11:25
 * @see com.miracle.main.module.mvp.contract
 */
public interface AddSecretContract {
    interface Model extends IModel {
        /**
         * 添加秘密
         * @param request
         * @return
         */
        Observable<BaseResponse<String>> addSecret(AddSecretRequest request);
    }

    interface View extends IView {
        /**
         * 添加成功
         */
        void addSucc();

        /**
         * 添加失败
         * @param msg 消息
         */
        void addFail(String msg);
    }

}
